package com.chehejia.devmng.platform.demo.demo1;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

/**
 * 描述:
 * excel 练习
 * @author 王永坤
 * @createDate 2018-12-15 20:32
 */
public class Demo1 {

    public static void main(String[] args) {
        //  定义个新的工作簿
        Workbook wb = new HSSFWorkbook();
        // 创建流
        try {
            FileOutputStream fileOut  = new FileOutputStream("D:\\用poi搞出来的工作簿");
            wb.write(fileOut);
            fileOut.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
